﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ERPStore.Web.ModelMetadata
{
	public class AddressMetadataDefinition : ModelMetadataDefinition<ERPStore.Models.Address>
	{
		public AddressMetadataDefinition()
		{
			SetMetadataFor(p => p.City).Required();
			SetMetadataFor(p => p.CountryId).Required();
			SetMetadataFor(p => p.RecipientName).Required();
			SetMetadataFor(p => p.Street).Required();
			SetMetadataFor(p => p.ZipCode).Required().MaxStringLength(6).MinStringLength(5);
		}
	}
}
